﻿ALink RDP 1.0.1 (build 24) - User Guide
======================================

ALink RDP is a lightweight tabbed remote desktop client: open many computers in one window and switch with tabs.
It connects to Windows Remote Desktop and to Mac Screen Sharing; nothing needs to be installed on the other computer.
It is a single portable EXE. Connections and passwords are encrypted with your master password and stored in
ALinkRDP.dat next to the program. Nothing is uploaded.
The interface is available in English and Chinese (follows the system by default; change it in Settings).

1. Requirements
- Windows 10 / Windows 11 (64-bit). No installation, no administrator rights, no extra runtimes.
- Remote Desktop uses the Remote Desktop component built into Windows.

2. Getting started
1) Put "ALink RDP.exe" in any folder (a USB drive works too) and double-click it.
   The folder must be writable (not C:\Program Files): the data file is saved next to the program.
2) On first start you are asked to set a master password (at least 8 characters). It cannot be recovered.
   You can also choose "Not now" and only use quick connect without saving anything.
3) Click "New connection", enter the host name or IP, user name and password, save, then double-click it in the list.
4) Or type an address in the search box at the top left and press Enter to connect right away, for example:
   192.168.1.10        Remote Desktop
   server01:3390       Remote Desktop on a specific port
   vnc://192.168.1.20  Mac Screen Sharing
5) Already using Windows Remote Desktop Connection? Settings > Import connections can import .rdp files or its
   recent-connection history.

3. Which computers can you connect to (nothing to install on them)
- Windows Pro / Enterprise / Server: turn on Settings > System > Remote Desktop on that computer.
- Mac: turn on System Settings > General > Sharing > Screen Sharing; choose "VNC (Mac)" as the connection type and
  use the Mac account name and password.
- Windows Home has no Remote Desktop service, so it can't be connected to without extra software (a Windows limit).

4. Everyday use
- Tabs: move the mouse to the top of the window to show the tab bar; Ctrl+Tab switches, Ctrl+W closes a tab.
- Full screen: Ctrl+Alt+Break, or the full-screen button at the bottom right.
- Ctrl+N new connection, Ctrl+F search, Ctrl+B show / hide the connection list, Ctrl+, settings menu; in the connection
  list, Shift+F10 or the Menu key opens a connection's context menu. While the remote screen has focus these keys go to the remote PC.
- The "..." button on the tab bar, or right-clicking a tab: disconnect, reconnect, open another session to the same
  computer, send Ctrl+Alt+Del, save a remote screenshot, close other tabs, etc.
  Screenshots are saved to Pictures\ALink RDP, named after the connection and the time.
  An open connection can also be disconnected by right-clicking it in the connection list. After a disconnect the
  session area shows a "Disconnected" page with Reconnect and Close tab; in full screen it stays full screen with the tab bar shown, and Reconnect brings you straight back.
  For a Mac there are also: fit to window (default; scales to fill the window, or the screen in full screen) /
   actual size (scrollable), view only (no keyboard, mouse or clipboard sync in either direction),
   sync clipboard (follows the connection's "Share clipboard"; can be turned off any time),
   type clipboard text as keystrokes. Mac Screen Sharing can't change its resolution to match the window,
   so a different aspect ratio leaves black bars. When a Retina Mac is shown very small in the window (each Mac pixel
   at less than about half size), ALink asks the Mac to halve the picture before sending it, which uses less bandwidth
   and is smoother; enlarging the window or switching to actual size restores the full resolution automatically.
- The gear at the bottom right (Settings): theme, language, Ctrl as Command on a Mac, reconnect automatically,
  warn me about remote identity problems, import / export connections, change master password, lock now, etc.
- In dialogs, Alt+F8 shows / hides a password, and you can drag a dialog by its title.
- Menus and drop-down lists work with the keyboard: Up/Down to select, Enter to choose, Esc to cancel;
  Alt+Down opens the group list.

5. Remote Desktop advanced options (Edit a connection > Advanced..., Windows Remote Desktop only)
- Local resources: clipboard (on by default), local drives, printers, microphone, smart cards (off by default).
- Remote audio: play on this PC / play on the remote PC / don't play.
- Quality and bandwidth: auto-detect / LAN (best quality) / low bandwidth (no wallpaper or animations, 16-bit color).
- Windows keys (Win, Alt+Tab, ...): always to remote (default; while the remote session has focus) / full screen only /
  keep on this PC. With "full screen only", the Windows component uses a few extra drawing resources each time you
  enter full screen; after very many full-screen switches the program may need a restart.
- Admin mode: connect to the server's console session (like mstsc /admin).
- Use all monitors in full screen: with several monitors, the full-screen window covers all of them.
- RD Gateway: gateway address; sign in with the same account as the remote PC or a separate one (the gateway
  password is encrypted too); optionally bypass the gateway for local addresses.
- USB and Plug and Play devices, Cameras: don't share (default) / all (including ones plugged in later) / selected
  devices... (tick devices on this PC). With "Local drives" on, USB sticks plugged in during the session appear too.
  On the remote PC your drives appear as network locations such as "E on <this PC's name>" (\\tsclient\E); the
  remote Windows chooses that name and icon, because Remote Desktop doesn't pass drive labels or icons (this is the
  same in every Remote Desktop client).
- Direction: devices and drives go from the PC in front of you to the remote PC, not the other way round (Remote
  Desktop doesn't support that).
- Generic USB...: dongles, scanners, phones and other USB devices not in the list need Windows RemoteFX USB
  redirection. Click this button to see its status; if it is off, click "Turn on as administrator", restart this PC,
  then tick the device under "Selected devices...". While redirected, the device is usable only on the remote PC.
  The remote PC must allow device redirection (allowed by default); cameras need Windows 10 / Server 2019 or later.
Changes take effect the next time you connect, including "Reconnect" on an existing tab.

6. Automatic reconnect
When the network drops, or the remote PC restarts or is shut down and comes back, ALink keeps reconnecting until it
succeeds: after 5, 15 and 30 seconds, then once a minute. Before each try it checks that the remote port answers, so
a computer that is still restarting doesn't cause repeated errors. Mac Screen Sharing keeps reconnecting too. While
waiting, the session area shows "Connection lost, reconnecting" with a countdown, plus "Reconnect now" and "Stop
reconnecting". Wrong passwords, remote sign-outs, being replaced by another sign-in and your own disconnects don't
trigger it; when an administrator disconnects your session on the remote PC, ALink reconnects only after confirming
that the PC is really restarting. Waking this PC from sleep reconnects right away. It can be turned off in Settings
(waiting reconnects stop at once). A session relayed through an upper computer that drops is relayed again
automatically.

6b. System tray, starting with Windows, connecting automatically
- Clicking × hides the window to the system tray; sessions and automatic reconnects keep running (you're told the
  first time). Click the tray icon to open the window; right-click it to connect to a saved computer, turn on starting
  with Windows, or exit. To make × quit instead: Settings > untick "Close to the system tray".
- Starting "ALink RDP.exe" again while it is running brings up the existing window.
- Start with Windows: Settings (or the tray menu) > "Start automatically with Windows". It then runs in the tray.
- Connect automatically: edit a connection and tick "Connect automatically when ALink RDP starts". After ALink starts
  and unlocks, those computers are connected in list order.
- Remember the master password on this PC: Settings > "Remember master password on this PC", confirm it, and from
  then on ALink unlocks (and connects) by itself when it starts, including with Windows. The master password itself
  is not stored; a key that opens only this data file is encrypted with your Windows account in ALinkRDP.unlock next
  to the program and only the current Windows account on this PC can
  decrypt it; the trade-off is that anyone who can sign in to your Windows account can use your saved connections.
  Without it, ALink asks for the master password after starting with Windows, then connects.

7. Import, export and moving to another PC
- Another PC: copy "ALink RDP.exe" together with "ALinkRDP.dat" and unlock with the same master password.
- Export all connections: Settings > Export all connections creates an .alinkrdp file, encrypted with an export
  password you choose (it can differ from the master password); saved passwords are optional.
  On the other PC: Settings > Import connections > From an ALink export file.
- Import .rdp files (several at once). Passwords inside .rdp files use a PC-specific encryption and can't be
  imported; add them later with Edit. For safety, newly imported connections never share this PC's drives, printers or
  devices (.rdp files are a common trick to get such sharing); turn sharing on in Edit > Advanced options if you need it.
- Import Windows Remote Desktop Connection history: pick the computers you want from its recent connections.
- When an imported connection has the same address, port and user name as an existing one, you choose Skip /
  Overwrite / Keep both.
- Export as .rdp file: right-click a Remote Desktop connection to create an .rdp file without the password; it opens
  in Windows Remote Desktop Connection.

8. Multi-level bridging (when the remote PC also runs ALink)
- Example: this PC connects to PC A with ALink, and ALink on A is connected to B and C. Once you connect to A (with bridging turned on there), the two
  bridge automatically: this PC's tab bar shows "A › B" and "A › C" (hollow dots); click one to open it directly on
  this PC instead of looking at it inside A's screen.
- It tries a direct connection from this PC and the relay through A at the same time: direct only when the certificate
  this PC reads from B matches the one A recorded (so it is the same computer); otherwise through A (for example when another
  computer on this PC's network happens to use the same address, when B is only on A's network, or for a Mac),
  and if the direct port answers but signing in fails, it
  switches to the relay through A automatically. The relay uses the same encrypted Remote Desktop connection; no third-party server.
- Bridging is off by default: first turn on Settings > Multi-level bridging > "Allow an upper-level ALink to
  bridge this PC's sessions" in ALink on A; only then do the computers A is connected to appear on this PC.
- Passwords saved on A are handed to this PC for the connection (kept in memory only, not written to this PC's data
  file). On A, Settings > Multi-level bridging can turn off password sharing or bridging altogether.
- While bridged, ALink on A hides its own tab bar and stops auto-reconnecting sessions you opened here, so the two
  sides don't take sessions from each other.
- Works through Windows Remote Desktop connections only (a Mac Screen Sharing connection has no bridge channel); Macs
  that A connects to can still appear in the list.

9. Security
- Passwords are stored only in encrypted form in ALinkRDP.dat (PBKDF2-HMAC-SHA256 + AES-256-GCM); the program
  keeps no log.
- Remote identity (certificates): as requested, ALink no longer shows "The identity of the remote computer cannot
  be verified" and connects directly. It records each computer's certificate fingerprint in the background: the
  first one is remembered automatically; if it later changes, there is no pop-up, a note in the status bar showing the old and new fingerprints; it stays until you click it,
  and a system notification is also shown when the window is in the tray or full screen
  ("identity certificate has changed"). When you see it, check whether the remote PC was reinstalled or
  its certificate replaced; otherwise someone may be impersonating it. To be asked every time as before, turn on
  Settings > Warn me about remote identity problems.
- Mac Screen Sharing (from build 22): when you sign in with the Mac account name and password, the picture, keyboard,
  mouse and clipboard after sign-in go through Apple Screen Sharing's encrypted channel (the same way Apple's own Screen
  Sharing app does it). With only a VNC password, or no password, nothing is encrypted; use it only on a local network
  or over a VPN. The Mac's identity can't be verified (a limit of the protocol), so connect only to Macs on networks
  you trust.
- The program is not code-signed. On first run Windows may show "Windows protected your PC"; after checking the
  source, click "More info > Run anyway". Verify the file with the value in SHA256.txt:
  in PowerShell run  Get-FileHash ".\ALink RDP.exe" -Algorithm SHA256

10. Upgrading from 1.0.0
- Just replace the old ALink RDP.exe with the new one; your connections and settings are kept.
- On the first save, the program copies the old data file to ALinkRDP.dat.v3.bak. Version 1.0.0 can't open the new
  format; to go back to 1.0.0, rename that backup to ALinkRDP.dat (changes made in 1.0.1 won't be in it).
- A small ALinkRDP.ui file appears next to the program. It only stores the language, theme and window position, so
  the unlock screen also uses your settings.

11. Known limitations
- Multi-level bridging was verified here over a real Remote Desktop virtual channel (discovery, switching, direct,
  relay, heavy relaying, relaying to a real Windows host); opening the bridge channel on the computer you connect to (A)
  inside a real Remote Desktop session still needs a real-machine check.
- Not yet fully accepted on real Mac and Windows hosts (automated tests use local test servers). The gateway and
  local drives / printers / audio / microphone / smart cards inside the remote session need real-machine checks.
  USB / Plug and Play devices, cameras and generic USB redirection were verified here only up to "settings handed
  to the Windows component"; actual redirection needs real devices and a real Windows host.
  When reporting a problem, include the error message (a screenshot is fine) and the steps you took.
- On a Mac (from build 22) ALink uses Apple Screen Sharing's own clipboard messages, so Chinese and any other text
  syncs in both directions. Other VNC servers without a UTF-8 clipboard still carry only Western characters; use
  "Type clipboard text as keystrokes" in the tab menu there.
- The new way of connecting to a Mac (the Apple Screen Sharing dialect, from build 22) has been tested on a real Mac.
  If a Mac connection shows a broken picture, please send a screenshot of the error.
